package com.alisls.demo.springcloud.service.user.entity;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * 业务DO
 *
 * @author Ke Wang
 * @date 2020/11/6
 */
@Entity
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
@Getter
@Setter
public abstract class BizDO implements Serializable {

    /**
     * 主键
     */
    @Id
    private Long id;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 创建时间
     */
    @Column(nullable = false)
    private Date createTime;

}
